package test2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-02-01
 * Time: 12:02
 */
class WangEr{
    public void talk(){
        System.out.println("我最帅");
    }
}

class WangXiaoEr extends WangEr{
    @Override
    public void talk(){
        System.out.println("我比我爹还帅");
    }

}
public class Test2 {
    public static void main(String[] args) {
        WangEr wangEr = new WangXiaoEr();
        wangEr.talk();
    }
}
